package ooday02;

public class OverridingDemo {
    public static void main(String[] args) {
        Student zg = new Student("张光",15,"北京","J12345","S2005");
        zg.sayHi();
        Teacher ww = new Teacher("王明",28,"上海",8888.88);
        ww.sayHi();
        Doctor lc = new Doctor("李聪",35,"天津","主治医师");
        lc.sayHi();
    }
}
